package com.kady.service;

import com.kady.entity.Food;

import java.lang.reflect.InvocationTargetException;
import java.sql.SQLException;
import java.util.List;
import java.util.Map;

/**
 * \* Created with IntelliJ IDEA.
 * \* User: kady
 * \* Date: 2021/3/25
 * \* Time: 14:35
 * \* 千峰JAVA2101班
 * \* Description: 菜品业务层
 * \
 */

public interface FoodService {
    List<Food> getFoodList(String keyword) throws SQLException, InvocationTargetException, IllegalAccessException;

    void addFood(Food food) throws SQLException;

    void updateFood(Food food) throws SQLException;

    Food findById(String food_id) throws SQLException;

    List<Food> findByTypeId(long typeId) throws SQLException;

    void removeFood(String foodId) throws SQLException;

    Food getFoodByName(String name) throws SQLException;
}
